package a.f.l.a;

import a.c.e;
import a.d.t;
import a.f.tb;

import java.util.List;

class hc
  extends sb
  implements sc
{
  private boolean f;
  private static final double g = 1.0E-006D;
  private double h;
  private eb i;
  private eb j;
  private eb k;
  private eb l;
  private int m;
  
  protected void a(qb paramqb)
  {
    super.a(paramqb);
    this.h = a().c().n();
  }
  
  protected void c()
  {
    super.c();
    this.i = null;
    this.j = null;
    this.k = null;
    this.l = null;
  }
  
  protected void b(rb paramrb)
  {
    this.f = d();
    if (this.f)
    {
      t localt = paramrb.i().h();
      this.i = new eb(localt.d(), localt.d() + localt.b());
      this.j = new eb(localt.e(), localt.e() + localt.c());
      this.k = new eb(localt.d() - this.h, localt.d() + localt.b() + this.h);
      this.l = new eb(localt.e() - this.h, localt.e() + localt.c() + this.h);
      this.m = Math.min(paramrb.e().f().g(), 2 * paramrb.e().f().a());
      paramrb.a().a(this);
    }
  }
  
  protected void c(rb paramrb)
  {
    super.c(paramrb);
    if ((sb.e) || (this.f)) {
      b().a().c(this);
    }
  }
  
  protected void d(rb paramrb)
  {
    super.d(paramrb);
    if ((sb.e) || (this.f)) {
      b().a().c(this);
    }
  }
  
  protected double b(h paramh)
  {
    boolean bool = sb.e;
    if ((this.f) && (((!bool) && (paramh.b() == null)) || (((bool) || (!paramh.b().g())) && ((bool) || (a(paramh.a()))) && ((bool) || (d(paramh)))))) {
      if (!bool)
      {
        if (e(paramh)) {
          a("HEUR Punish intersecting source and target", this.m, true);
        }
      }
      else {
        return this.m;
      }
    }
    return 0.0D;
  }
  
  private boolean d(h paramh)
  {
    boolean bool = sb.e;
    tb localtb = paramh.d();
    eb localeb = localtb.d() ? this.i : this.j;
    if ((bool) || ((localtb == tb.b) || (localtb == tb.c)))
    {
      if (!bool) {}
      return paramh.c().f() <= localeb.b();
    }
    if (!bool) {}
    return paramh.c().f() >= localeb.a();
  }
  
  private boolean e(h paramh)
  {
    eb localeb = paramh.d().d() ? this.l : this.k;
    return paramh.c().e().c(localeb);
  }
  
  public void a(h paramh, rb paramrb, byte paramByte)
  {
    boolean bool = sb.e;
    if (!bool) {
      if (!this.f) {
        return;
      }
    }
    if ((bool) || ((paramByte == 1) || (paramByte == 2)))
    {
      h localh = paramh.b();
      if ((bool) || (localh != null))
      {
        if (bool) {
          break label86;
        }
        if (localh.g()) {
          paramh.b(true);
        }
      }
      if ((bool) || ((sb.d != 0) && (!a(paramh.a())))) {
        label86:
        paramh.b(true);
      }
    }
  }
  
  protected boolean c(h paramh)
  {
    boolean bool = sb.e;
    int n = paramh.j() != null ? 1 : 0;
    if ((bool) || ((!this.f) || ((bool) || (paramh.g())))) {
      if (bool) {}
    }
    return n != 0;
  }
  
  private boolean d()
  {
    boolean bool = sb.e;
    t localt1 = b().g().h();
    t localt2 = b().i().h();
    if (((bool) || (localt1.d + localt1.a > localt2.d - 1.0E-006D)) && ((bool) || (localt1.e + localt1.b > localt2.e - 1.0E-006D)) && ((bool) || (localt1.d < localt2.d + localt2.a + 1.0E-006D))) {
      if (bool) {}
    }
    return localt1.e < localt2.e + localt2.b + 1.0E-006D;
  }
  
  private boolean a(mb parammb)
  {
    boolean bool = sb.e;
    List localList1 = b(parammb);
    List localList2 = c(parammb);
    e locale = b().d().f();
    if (!bool) {
      if (!localList1.contains(locale)) {
        if (bool) {
          break label62;
        }
      }
    }
    label62:
    return localList2.contains(locale);
  }
  
  private List b(mb parammb)
  {
    return (List)parammb.a(nb.b);
  }
  
  private List c(mb parammb)
  {
    return (List)parammb.a(nb.a);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.a.hc

 * JD-Core Version:    0.7.0.1

 */